﻿@{
    Layout = "~/Views/Shared/MasterPage.cshtml";
    ViewBag.Title = "文字朗读";
}

<style type="text/css">
    input {
        outline: none;
    }

    textarea {
        resize: none;
        outline: none;
        width: 100%;
        border: none;
    }
</style>
<div class="divPage">
    <div class="divTitleText"></div>
    <div>
        <p>
            人声：
            <select id="sltPer" class="mr10" style="height:36px;position:relative;top:-2px">
                <option value="0">女声</option>
                <option value="1">男声</option>
                <option value="3">逍遥</option>
                <option value="4">丫丫</option>
            </select>
            <button id="btnPlay" class="jk-button">播放</button>
        </p>
        <div class="divInput">
            <textarea id="txtContent" rows="25"></textarea>
        </div>
    </div>
</div>
<script type="text/javascript">

    $("#btnPlay").bind("click", function (e) {
        var text = encodeURI($("#txtContent").val());
        if ($("#txtContent").val().trim().length == 0) {
            text = '我的大脑一片空白，不知道要说些什么';
        }
        SpeenchText(text);
    });


</script>